package com.mazaiting.generator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mazaiting.generator.domain.entity.ProjectEntity;
import com.mazaiting.generator.domain.info.ProjectInfo;
import com.mazaiting.generator.domain.query.ProjectQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 项目 dao
 */
@Mapper
public interface IProjectMapper extends BaseMapper<ProjectEntity> {

    /**
     * 分页查询
     * @param query 查询参数
     * @return 分页数据
     */
    IPage<ProjectInfo> page(Page<ProjectInfo> page, @Param("query") ProjectQuery query);
}